#include <stdio.h>

int main(){
    int x,y,z;
    for (int x=0;x<=20;x++){
        for (int y=0;3*y+5*x<=100;y++){
            for (int z=0;5*x+3*y+z/3<=100;z+=3){
                if (5*x+3*y+z/3==100&&x+y+z==100){
                    printf("x=%d,y=%d,z=%d\n",x,y,z);}
            }
        }
    }
    return 0;

}